treeview: insert the column button css node in the right place
authorTimm Bäder <mail@baedert.org>
Mon, 24 Apr 2017 19:47:24 +0000 (21:47 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 25 Apr 2017 18:29:02 +0000 (20:29 +0200)
Insert the css node before setting a parent widget on the column button,
so the gtk_widget_set_parent won't attempt to add the css node as child
of the parent widget css node.

gtk/gtktreeview.c

index 72c687e9ef7447b9ac940fcb3e69140456c1a0e5..118e6a57d06ac775b6fee9d8092370274add0177 100644 (file)
@@ -11722,10 +11722,10 @@ gtk_tree_view_insert_column (GtkTreeView       *tree_view,
                                            column, position);
   tree_view->priv->n_columns++;
 
-  _gtk_tree_view_column_set_tree_view (column, tree_view);
-
   gtk_tree_view_update_button_position (tree_view, column);
 
+  _gtk_tree_view_column_set_tree_view (column, tree_view);
+
   if (gtk_widget_get_realized (GTK_WIDGET (tree_view)))
     {
       GList *list;